package Lintcode;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * Question:
 * Solution:
 * Time: 2018/4/30
 * Coder: Ksxy
**/
public class Fizz_buzz {
    static Scanner scanner = null;

    static {
        scanner = new Scanner(System.in);
    }

    public static void main(String[] args) {
        int n = scanner.nextInt();
        List<String> list = fizzBuzz(n);
        System.out.println(list);
    }


    public static List<String> fizzBuzz(int n) {
        List<String> list = new ArrayList<>(n);
        for(int i=1; i <= n; i++){
            list.add(i%3 == 0 ? (i%5 == 0 ? "fizz buzz": "fizz") : (i%5 == 0 ? "buzz": String.valueOf(i)));
        }
        return list;
    }

}
